package com.winstar.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author  shoo  Created  on 2017/1/4.
 * @describe  号码归属地查询实体
 */
@Entity
@Table(name = "number_attribution")
public class NumberAttribution {
    /*
    * 手机号前3位
    * */
    private String prefix;
    /*
   *号段
   * */
    private String phone;
    /*
   *省份
   * */
    private String province;
    /*
   *城市
   * */
    private String city;
    /*
   *运营商
   * */
    private String isp;
    /*
   *邮政编码
   * */
    private String post_code;
    /*
   *区号
   * */
    private String city_code;
    /*
   *行政区域编码
   * */
    private String area_code;
    /*
   *类型
   * */
    private String types;
    /*
    * 唯一标识
    * */
    @Id
    @GenericGenerator(name = "idGenerator", strategy = "org.hibernate.id.UUIDGenerator")
    @GeneratedValue(generator = "idGenerator")
    private String id;

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getIsp() {
        return isp;
    }

    public void setIsp(String isp) {
        this.isp = isp;
    }

    public String getPost_code() {
        return post_code;
    }

    public void setPost_code(String post_code) {
        this.post_code = post_code;
    }

    public String getCity_code() {
        return city_code;
    }

    public void setCity_code(String city_code) {
        this.city_code = city_code;
    }

    public String getArea_code() {
        return area_code;
    }

    public void setArea_code(String area_code) {
        this.area_code = area_code;
    }

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
